package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.base.mapper.voipmapper.UserpaysMapper;
import com.base.po.voip.Userpays;
import com.base.po.voip.UserpaysExample;
import com.base.service.UserpaysService;
import com.base.utils.Page;

@Service("userpaysService")
public class UserpaysServiceImpl implements UserpaysService {
    @Autowired
    private UserpaysMapper userpaysMapper;

    @Override
    public int countByExample(UserpaysExample example) {
        return userpaysMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(UserpaysExample example) {
        return userpaysMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return userpaysMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Userpays record) {
        return userpaysMapper.insert(record);
    }

    @Override
    public int insertSelective(Userpays record) {
        return userpaysMapper.insertSelective(record);
    }

    @Override
    public List<Userpays> selectByExample(UserpaysExample example) {
        return userpaysMapper.selectByExample(example);
    }

    @Override
    public Userpays selectByPrimaryKey(String id) {
        return userpaysMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(Userpays record, UserpaysExample example) {
        return userpaysMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Userpays record, UserpaysExample example) {
        return userpaysMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(Userpays record) {
        return userpaysMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Userpays record) {
        return userpaysMapper.updateByPrimaryKey(record);
    }

    @Override
    public Userpays selectByUserID(String userid, boolean status) {
        return userpaysMapper.selectByUserID(userid, status);
    }

    @Override
    public List<Userpays> selectByExamplePage(UserpaysExample examplePage) {
        return userpaysMapper.selectByExamplePage(examplePage);
    }

    @Override
    public int countByAll(String parentid, String pname, String submobile, String mobile, String createtime,
                          Integer status) {
        return userpaysMapper.countByAll(parentid, pname, submobile, mobile, createtime, status);
    }

    @Override
    public List<Userpays> selectByAll(Page page, String parentid, String pname, String submobile, String mobile,
                                      String createtime, Integer status) {
        return userpaysMapper.selectByAll(page, parentid, pname, submobile, mobile, createtime, status);
    }

}
